Hi all, |
Re: Edit a module fails, how can I know why? When you run the script in the DXL Interaction window, do any errors appear in the DXL Output pane at the bottom of the window?? If yes, it would be handy to know what those errors are and perhaps a copy of the DXL code that you're using to open modules for editing. Something you can try - the Module edit function has an optional silent parameter that when enabled will provide feedback to the user as to why a module cannot be opened for editing - set this parameter to true and see if that helps. Paul Miller Melbourne, Australia |
Re: Edit a module fails, how can I know why? This function will give the permission of the current user to the Module:
string PermissionOf(string NameMod)
{ // Get the current user's Permission to the Module
ModName_ mn = module(NameMod)
if (null mn) return("none")
string Me = doorsname()
Buffer buf = create()
if (hasPermission(Me, mn, read)) buf += "R"
if (hasPermission(Me, mn, modify)) buf += "M"
if (hasPermission(Me, mn, create)) buf += "C"
if (hasPermission(Me, mn, delete)) buf += "D"
if (hasPermission(Me, mn, control)) buf += "A"
if (length(buf) == 0) buf = "none"
string Results = stringOf(buf)
delete(buf)
return(Results)
} // end PermissionOf(NameMod)
|